<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFourCampusTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('four_campus', function (Blueprint $table) {
            $table->increments('id');
            $table->string('campus_name')->default('')->comment('院区名称');
            $table->string('city')->default('')->comment('所在市');
            $table->string('region')->default('')->comment('具体地址');
            $table->string('phone1')->default('')->comment('电话1');
            $table->string('phone2')->default('')->comment('电话2');
            $table->string('car')->default('')->comment('公交');
            $table->string('in_navigation')->default('')->comment('院内导航');
            $table->string('desc')->default('')->comment('描述');
            $table->string('campus_status')->default('')->comment('状态');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('four_campus');
    }
}
